You dont need to do that in the classes constructors ;). Create the state object before you create instances of those classes and pass it along into their constructors.