Implement calculator server/logic