PiOC's exercise 6-4