Solution 3: