Moved Coordinate and helper method implementations to separate files.