finished area and perimeter functions for the rectangle