@mridulm agree with Patrick, you have to return ```this``` for ```this.type``` return type.