Task 2 - Garbage collection