Revised structure, tests and comments to align to focus of example. The last two examples are throwing errors and need further fix.