Positive thinking can aid memory