title: Python help: OOP Rectangles
body: <p>Please help with completing this. I am stuck and cant seem to get it. Below this is what i was given and below the code is what the output needs to be.    </p>
  
  <pre><code>def main():
  print ("Rectangle a:")
  a = Rectangle(5, 7)
  print ("area:      {}".format(a.area))
  print ("perimeter: {}".format(a.perimeter))
  
  print ("")
  print ("Rectangle b:")
  b = Rectangle()
  b.width = 10
  b.height = 20
  print (b.getStats())
  </code></pre>
  
  <p>Expected Output</p>
  
  <p>When the Rectangle class has been properly created, the output should look like the following:</p>
  
  <pre><code>Rectangle a:
  area:      35
  perimeter: 24
  Rectangle b:
  width:     10
  height:    20
  area:      200
  perimeter: 60
  </code></pre>
  
  <p>this is what i have done from what i know. I missed the lecture for a family emergency and dont know how to finish it. </p>
  
  <pre><code>class Rectangle: 
      def __init__ (self, H=0, W=0): 
          self.width = W 
          self.height = H 
  
  @property 
      def area (self): 
          return self.width * self.height 
  
  def main(): 
      print ("Rectangle a:") 
      a = Rectangle (5, 7) 
      #print ("area: {}".format(a.area)) 
      #print ("perimeter: {}".format(a.perimeter)) 
      print ("") 
      print ("Rectangle b:") 
      b = Rectangle() 
      b.width = 10 
      b.height = 20 
      #print (b.area) 
      #print (b.getStats()) 
  
  main ()
  </code></pre>