completed example code