Functions and linear models