Add perimeter method to Square class