need help on constructors in rectangle  and toString

need help on constructors in rectangle  and toString
set origin = bottomLeft then set width = topRight.getX() - origin.getX(), and height using Y values