Finished Section 9.2 exercise, RectangleViewer.