updates to example 4