solution to second problem