add base equation class and quadratic equation implementation