implement classify function to classify document of known features