Exercise 6.1 getword