added classifyPerson function