Solution 3 completed