adding example code for habtm cookbook - week3 weekend homework