Treadmill garbage collector for CS4201