Added mehtods to the classes
Added class constructors and a toString method.
corrected methods;