Fix 3 errors in code examples