Comparing the organization of a Java program to that of a book