update example code take 2