Added a serializer to the note class