Got basic mathematics working