added calculator implemented with lambdas