Write a C++ library for working with complex numbers. The library implements its own namespace. Complex numbers are implemented through a class. Real and imaginary parts are different data types (separate classes). You cannot use the complex template from std. You cannot use third-party libraries. There must be methods for addition, subtraction, multiplication, division, modulus calculation, degree expansion and root extraction for complex numbers. Inherit all methods from the main class. Create complex numbers through constructors. Access class fields through getters and setters that check the correctness of arguments (numbers). Handle errors and abnormal argument values with try, catch, and throw. The library should have: one static method, one static variable, and one friendly function. Avoid errors in your code. Keep variable names to no more than 2 characters. Don't write comments in the code. Don't explain anything. Write only the code. At the end, give 2 lines with an example of working with the library.