added functionality to perform operations but only checked add wich tested ok. must change to switch/case