updated notes array to use note objects with note and length