add modulus method to complex type