Experimenting with incorporating isEqual() in equals().