Wrote a small program showing inheritance example