added a note factory to make note composition easier