Make sure to first fill in with the name parameter, then assemble this.name = name;.
name
this.name = name;