write code that generates comparision results from thomas