updated example 2