Solved an inheritence solution