answers from http://www.pythonchallenge.com/