\chapter{The class file}

There are a number of features\footnote{This is a footnote at the bottom of the page} not illustrated here. Here's another footnote\footnote{The second footnote}, which clearly uses as different counter than the endnotes that use Arabic numbering\endnote{This one can be found in the endnotes section}. 

\section{A section}

\lipsum[1]

\subsection{A whole subsection is indexed}\index{subsect|(}

It's spanning pages.

\lipsum[1-4]

\index{subsect|)}


\subsection{Another subsection}

\lipsum[1-2]

\section{One more section for the ToC}

\lipsum[1]