"use strict";
var c = console;
//execute when window and DOM are ready
window.onload = function() {
    function Shape(type, height, width) {
        this.type = type;
        this.height = height;
        this.width = width;
    }

    var square = new Shape("square", 2, 2);
    var rectangle = new Shape("rectangle", 2, 4);
    var triangle = new Shape("triangle", 3, 4);

    c.log(Shape);
    c.log(square);
    c.log(rectangle);
    c.log(triangle);


};
@@ -234,21 +234,23 @@
     var 
-squar
+triangl
 e = new 
@@ -260,40 +260,132 @@
 pe(%22
-squar
+triangl
 e%22, 
-2, 2
+3, 4
 );%0A
+%0A
     
-var rectangl
+Shape.prototype.Area = function() %7B%0A        return this.height * this.width;%0A    %7D%0A    %0A    var squar
 e = 
@@ -399,24 +399,21 @@
 pe(%22
-rectangl
+squar
 e%22, 2, 
-4
+2
 );%0A 
@@ -411,35 +411,36 @@
  2, 2);%0A    var 
-tri
+rect
 angle = new Shap
@@ -438,35 +438,36 @@
  new Shape(%22
-tri
+rect
 angle%22, 
 3, 4);%0A%0A    
@@ -450,31 +450,35 @@
 rectangle%22, 
-3
+2
 , 4);%0A
+    
 %0A    c.log(S
@@ -480,32 +480,50 @@
 log(
-Shape);%0A    c.log(square
+square.Area());%0A    c.log(rectangle.Area()
 );%0A 
@@ -535,41 +535,246 @@
 log(
-rect
+tri
 angle
+.Area()
 );%0A
+%0A
     
-c.log(triangle);%0A%0A
+// don't use .__proto__ in this instance, use prototype%0A    String.prototype.prefix = function(msg) %7B%0A        return msg + %22 %22 + this;%0A    %7D%0A    // this is %22world%22 in this instance%0A    c.log(%22world%22.prefix(%22hello%22));
 %0A%7D;

using prefix