HW3 assignment 1