I think that’s the right way
The reason why it didn’t work is that you use it in the constructors
I didn’t mean to be rude