Add solution to 9.
Formatting changes