The theory of LEGO