Added challenge 9 and challenge 10
Fixed bug in challenge 7