Create the end property and store the end parameter in it.

Make sure you've added this.end = end; to your code.