Complete problem 9
added more information to p9