Doctest for Exercise 3