The spinal cord has a cylindrical shape and is surrounded by three layers of meninges. It contains gray matter in an H-shape with nerve cell groups, and white matter divided into columns containing ascending, descending, and intersegmental tracts. The gray matter consists of nerve cells that project into the anterior and posterior nerve roots. The white matter contains myelinated fibers that transmit sensory information ascending to the brain and motor commands descending from the brain.