Corrected code sample.