Fixed code examples for 1.2