task 7 with function docstring