Example does not compile

'}' at wrong line in the two example.
Merge pull request #41 from tomsquest/patch-1

Example do not compile