add Coord prototype and equals function