Removed printing as a side effect from the classify function.