Complex sum(const Complex& a, const Complex& b) { Complex c; c.rePart = a.rePart + b.rePart; c.imPart = a.imPart + b.imPart; return c; }