Solving Rational Expectations Models