created frequency tables