Adding solution for 9