Working through the examples in ipython notebook