ptr for stateMachine in the parent class