Done ex25. Note it needs importing to ipython