hw 4 pts 1 and 2