The spinal cord has enlargements at: