added first version of the second task: Garbage Collection