Moved the equilibrium simulation into its own class