Finishing up code for generating simple example.