overloaded the operators '+' and '=='