added a compare_main class

it uses the compare method developed by u