unit-2: oop and inheritance