Implemented equals method for comparing reference identity and structural identity