add constructor for Coord