Use a position instance variable to keep track of the cursor location.