Added code to get letter frequencies