Improvement of the GLM. Version 0 works