finished calculator doing one equasion per pass