Updating the code that generates the illustrative figure eight example.