functions ipython notebook from in-class change