updated to example 3