completed example 3