// Rectangle
public class RectangleFigure extends Figure {
    public boolean contains(int loc_x, int loc_y) {
	if (loc_x < x || loc_x > x + width)
	    return false;
	if (loc_y < y || loc_y > y + height)
	    return false;
	return true;
    }
    public void read(chapman.io.StdIn in) {
	super.read(in);
	System.out.print("  width? ");
	width = in.readInt();
	System.out.print("  height? ");
	height = in.readInt();
    }
    private int width, height;
}
