Extension of the classical theory for types I and II twinning