Adds arithmetic functionality
Completed working version