added code for the rectangle lab