Refactored. Inheritance on typescript interface #4