Inital calculator implementation.