Modeling with linear functions