write general_simulation.py in book_programs/chapter_1/
the mathematica script can be found in contributing/mathematica_scripts/Book Programs.3.0/Chapter 1(3.0)/GeneralSimulation.Chpt1.mat.m
make sure to start by copying the template found in contributing/