Updates to example 4