An in-depth introduction to shape grammars and their applications in architecture and related areas of design. Shapes in the algebras Ui j, in the algebras Vi j and Wi j incorporating labels and weights, and in algebras formed as composites of these. Rules and computations. Shape and structure. Designs.