[Newbies] capturing output in memory