Moved NotesAdapter to its own file.