text: var Polygon = require('./Polygon.js');
  
  function Rectangle(halfWidth, halfHeight)
  {
      // Initialize member variables
  	Polygon.call(this, [
  		{x: -halfWidth, y: -halfHeight},
  		{x: -halfWidth, y: halfHeight},
  		{x: halfWidth, y: halfHeight},
  		{x: halfWidth, y: -halfHeight}
  	]);
  	
      this.halfWidth = halfWidth;
      this.halfHeight = halfHeight;	
  }
  
  Rectangle.prototype = new Polygon();
  
  module.exports = Rectangle;