classifyLine in main code