HW1 code and results