First working GLM