refactoring of the state example into the new set
refactoring reader into the new set definition