Beginning: Sam was attempting to study at his apartment. Middle 1: Sam decided to go to a cafe instead. Middle 2: Sam went to the library to study. Ending: Sam was able to study in peace while having a cup of coffee.