Making the instantiated game object as a child of the GameObject

Hi, I can I make the gameObject as a child of the another gameOject.... I create the empty gameObject called "GameLevel" and I also instantiate several objects from my prefabs and make them children of the "GameLevel" object. The below code is not working. How can I fix it to get it working..

GameObject objLevel = new GameObject("GameLevel");
        for (int i = 0; i < totalMaxObjects.Count; i++)
        {
            for (int j = 0; j < totalMaxObjects*.position.Count; j++)*
 *{*
 _Vector3 euler = totalMaxObjects*.rotation[j];*_
 _*Quaternion rot = Quaternion.EulerAngles(euler);*_
 <em>_if (objectTypes *!= null)*_</em>
 <em>_*{*_</em>
 <em><em><em>GameObject obj = Instantiate(objectTypes<em>, totalMaxObjects_.position[j] * GlobalScale, rot) as GameObject;_</em></em></em></em>
 <em><em><em>_*obj.transform.parent = objLevel.transform;*_</em></em></em>
 <em><em><em>_*}*_</em></em></em>
 <em><em><em>_*else*_</em></em></em>
 <em><em><em>_*{*_</em></em></em>
 <em><em><em>_*Debug.Log("Transforms missing");*_</em></em></em>
 <em><em><em>_*break;*_</em></em></em>
 <em><em><em>_*}*_</em></em></em>
 <em><em><em>_*}*_</em></em></em>
 <em><em><em>_*}*_</em></em></em>
<em><em><em>_*```*_</em></em></em>

What exactly is the problem?

All I can see right now is that Quaternion has no EulerAngles function, but you should have gotten a compile error from that.