tagged problem with problem 5 method
re-wrote problem 5 solution to be more correct