


\setupbodyfont[12pt]


\setuppagenumbering[location={footer,middle},way=bytext]


\setuppapersize[letter][letter]

\setuphead		[section]
				[numberstyle=bold,
				page=yes,
				continue=no
]


\defineenumeration
[exercise]
[way=bysection,
text=Exercise,
start=1,
location=hanging,
letter=rm]

\defineenumeration
[solution]
[text=Solution,
way=bysection,
location=hanging,
letter=rm]

\defineblock[exercise,solution]
\hideblocks[solution]

\setupinteraction
[state=start]

\starttext

\section{Problems}


\startexercise 
Addition\index{addition} problem: $1+1=?$.
\stopexercise

\beginsolution
\solution
incorrect\index{incorrect} answer: 3.

\endsolution

\section{Answers to the Problems}

\reset[solution] 
\useblocks[solution] 

\section{Index}

\completeindex

\stoptext
