updated notes to use array