added printer functions to class definition