Solved P2.