Example do not compile

'}' at wrong line in the two example.