playing with pointer inheritance