question 3 written, without docstring