Crystallization: theory and practice