Extends class after like TypeScript