Inheritance is working properly