Linear functions and slopes