Fix incomplete methods in Rect. Add attributes and indent method constraints.