Factor out Coord class