finished writing the classes and the methods