Added a main method so testing of the classes can be done.