implemented rotateNotes and invert methods