implementing moveto command for demonstration