20141013: Updated HW8, did problems 1 and 2