exam 5 of pythonchallenge.