added learn python hard way exercise 47