Solved Problem 7, updated prompt Problem 6