Added a snippet for writing diary entries.