Implemented basic equals operator.