overriding equals for cell class