Wrote an example program to show some OO functionality