C: GLM example