SOLUTION 3B: (SPOILER ALERT)