Implememted equality check