updates to example 3