Corrected code example