Finished part 3 of hw