update example 2 - range