inheritance in object.c fixed