Solution for the second task