create a complex class