update example code with mine