finishes the purpose code classifier