Implemented all equal methods.