playing with inheritance and private member data