Solved first problem.