separated logResults() into ResultsLogger class