arrays and expanded algorithim 23.17