\begin{exercise}
  Include an exercise from an external file.
  \begin{solution}[framed]
    I just did this.
    \pause
    And this, too.
  \end{solution}
\end{exercise}

