removed printing of all results in program 3