public class Point {
  private int x;
  private int y;

  public Point(int initialX, int initialY) {
    x = initialX;
    y = initialY;
  }

  public void move(int dx, int dy) {
    x += dx;
    y += dy;
  }

  /* mutator method */
  public void setX(int newX) {
    x = newX;
  }

  /* mutator method */
  public void setY(int newY) {
    y = newY;
  }
  
  /* accessor method */
  public int getX() {
    return x;
  }
    
  /* accessor method */
  public int getY() {
    return y;
  }
    
  public String toString() {
    return "(" + x + "," + y + ")";
  }
}
