added ipython notebook for hierarchy