Added Position class and tests