Problem Set 5 Exercise 2

Broken out to functions and attempting to pass arrays.