Task 4 (Solution)