Move Scanner outside of static methods, and rename "Position" to "Pair".