completed 2nd example
completed example!