Update Ruby to 2.1.2
Upgrade gems
Use maths