updated example code formatting