Initial implementation of the two examples.