got assignment 3 part 4 - tying everything together