added toString methods to all the classes