Added a copy of the position class.

1. Copied near directly from an old implementation.