Program that solves equations