example code fixed