corrected example code.