Learning to be content in plenty and in want