A consumption-savings model and its applications