Exercised from 'Learn Python the Hard Way'