improving example code.