Update example and fixed missing semicolon