real_example code cleanup!