In this paper we present a classroom exercise where students can solve the basic two-period consumer choice model using the Excel-Solver, and explore the main features of the model. We also include a static comparative analysis and a borrowing constraint in the optimization problem