create copy constructor for coordinates