revised: letter occurance diagram