Inheritance between seperate classes