Minor refinement on example codes.