Completed example 10