Solve task39