added a comment to help explain the rectangle method