public class Rectangle {

	private int length;
	private int width;

	/**
	 * Create a rectangle with given dimensions
	 * 
	 * @param l
	 *            the length of the rectangle, l > 0
	 * @param w
	 *            the width of the rectangle, w > 0
	 */
	public Rectangle(int l, int w) {
		if (l > 0)
			length = l;
		else
			length = 0;

		if (w > 0)
			width = w;
		else
			width = 0;

	}

	/**
	 * Set the length of the rectangle
	 * 
	 * @param l
	 *            the new length of the rectangle, l > 0
	 */
	public void setLength(int l) {
		if (l > 0)
			length = l;
	}

	/**
	 * Set the width of the rectangle
	 * 
	 * @param w
	 *            the new width of the rectangle, w > 0
	 */
	public void setWidth(int w) {
		if (w > 0)
			width = w;
	}

	/**
	 * Get the area of the rectangle
	 * 
	 * @return the area of the rectangle
	 */
	public int getArea() {
		return length * width;
	}
}

@@ -416,32 +416,64 @@
 of the rectangle
+ and return new Rectangle object
 %0A%09 * %0A%09 * @param
@@ -525,24 +525,112 @@
 ngle, l %3E 0%0A
+%09 * @returns%0A%09 * %09       a new Rectangle with the same width and new length l, if l %3E 0%0A
 %09 */%0A%09public
@@ -626,28 +626,33 @@
  */%0A%09public 
-void
+Rectangle
  setLength(i
@@ -675,26 +675,101 @@
 %3E 0)%0A%09%09%09
-length = l
+return new Rectangle(l, this.w);%0A                return new Rectangle(this.l, this.w)
 ;%0A%09%7D%0A%0A%09/
@@ -869,32 +869,119 @@
 ectangle, w %3E 0%0A
+%09 * @returns   %0A%09 * %09      a new Rectangle with the same length and new width w if w%3E0%0A
 %09 */%0A%09public voi
@@ -981,12 +981,17 @@
 lic 
-void
+Rectangle
  set
@@ -1021,25 +1021,101 @@
 %3E 0)%0A%09%09%09
-width = w
+return new Rectangle(this.l, w);%0A                return new Rectangle(this.l, this.w)
 ;%0A%09%7D%0A%0A%09/

Update Rectangle.java