Extension method to sort int array, Nested  class for saving Books' notes