Working Theano code for simulation
- also includes two working examples