How to use movable pointers