7.3 Generating frequency tables