Added solving function at x