exercise 20.2 moving left to right