Implement day2 of 12Tdds