added code to check differences and print them, now runnable