Solution 1 for our example