The Calculus of Operations