The pleasure or pain experiences we go through are not necessarily the same that gets registered in our memories. This is heavily altered by our peak pleasure or pain cycles and how the overall experience ended. By ending our experiences on a happy note, despite the result, we can create pleasant memories to reflect upon.