Links: There is an ipython notebook attached to the image below.