correct inheritance nearly done