Inheritance wont work