modifying example code