Type error in exampleclass fixed