Corrected code examples