function area(r) { // console.log("Got r: " + r); return r.length * r.width; }