Finished problem 7, Santi's soln