Attempt to implement calculator instance with groovy.