Created a classification function
Merging with sathish's work
Merge branch 'classifydata'