Started code to learn classification based on freq