updated simple example. All primitives ready to merge back to master.