update example using constant