update example codes