calculator: first version