updates to example 6