chap 9 added random word length method