A generalization of linear multistep methods