updated example 6