Simple Math Class for php