example 4 improved