add part of typescript homework