Added solution to problem.