added methods attachChildren, containChild and attachChildren with z order