Implemented non-default operator=.