## It is suggested that one does not call the constructor directly,
## but if desired this is the appropriate structure
zz <- trendFactory$new(name='foo', date=Sys.Date())
zz$getName()
## Instead, use getTrends:
xx <- getTrends()
xx[[1]]$getName()
Run the code above in your browser using DataLab