add constructor for coord