Added a setter method for Coordinate class