added functionality to the Notes class