Complex sum(const Complex& a, const Complex& b) { return Complex(a.repart + b.repart, a.impart + b.impart); }