finished part 1 of hw4