Some php class that works with math.