finished the oop example program which contains all language features to be supported