added program using the classes