finished part 1 and working on part 2 of assignment