add TypeScript inheritance example