My exercise for learn python the hard way