Updates to Example 1.
working on example 2.