Make one class (constructor function) inherited from another