finished implementation of the Note class