use groovy calculator