rectangles can calculate their perimeter