The programs in HW1 and HW2