added member functions to cpp file and static data for output formatting