Resolved task 1 of HW1