An Intertemporal Model of Saving and Investment