Working Complex class
Bugs fixed