Add a complex class