Created generic math-operation method and passes the actual operation as an anonymous function.
Implemented division and multiplicaion.