lectures 2, 3, course notes on arrays