Add a state method to interacts to retrieve or set the state