almost finished, lacks to print what criteria was the most efficient