completed processFile(), and added printResults() stub