Add perimeter method to Rectangle class