How is average rate of change related to linear functions?