A Scene with Purpose

Why did you just write that scene? You know the one I mean, the one where nothing really happens, but it was nice, or it connected two other scenes where stuff does happen? Or maybe you don’t know why you wrote the scene, it was just what happened next in the story....