P2.2: Created a perimeter calculator for rectangles.