Added diff function

I've added diff basic functionality.