Updated chapter 4 for b6 and to change handling of dictionary's keys and values arrays.