added functions to ipython notebook