Solution 2.