6 - TS Solution