Calculus of Blocks