Added a constructor for displaying notes to the NoteField class