Add compare function to print comparsion