part 4 of hw 1 in complete