Adding original soultion to the problem.