Spending a few moments before sleep in thinking of everything for which you can be grateful makes a very positive end to the day, and also beneficially affects the quality of your sleep.