modified the rect class, trimmed some fat, and added a resizing button to the corner.