type StateOfBlock = Box<dyn Fn(&str) -> Option<AgentState> + Send + Sync>;
struct StateOfBlock(/* private fields */);