Solved second task.