exercice for python the hard way.