my function exercise doctest completed