cleaning up formatting
solution to 18.7
18.10 solution