Updated Class with print_all_attributes functions

Updated class methods and added tested a few subclasses and hasattr() method.