Implement the story chapter contract for all inputs and outputs