Add docstrings to functions in challenge 9 and 10