Implemented classification programatically.