moving functions to Coords2D