TypeScript Homework