Tweak to class 6 exercise 5