moveToPos(int pos) method is implemented.