Pull Equation out into its own module and implement equation indexing.