Classification and Quality Analysis of Food Grains