added a toString method to the classes