Implementing calculator lib.