First version of calculator implementation using lambda