homework 1 assignment finished (parts 1, 2, 3)