updates to example 2