Add the this.length property and give it the value of the length parameter.

Make sure you've spelled this.length = length; in your code.