Creating fundamental methods for generation of CSV and using that in other more complex methods