Added solution to problem 8
Added solution for problem 9