SMS: Linear rational expectations models