set up calc, and created a add and subtract finction