Legacy Code - HW2