example code outlined