updated the example/demo so that it works with the changes to the model and other parts of the framework