added ipython notebook calculations