Second Answer for HW 1