Function comments and refactoring
Solution 7
Problem 9