Final version of ipython notebook