working on porting the examples.

- NOTE that the other pieces of code do not work yet.