minor corrections on exercise 5