Hi

I live in Itasca, IL a suburb west of Chicago. I attempt to look into the IL code, but could not find any reference to this. I have gas coming out of a black iron gas pipe and water coming out from copper pipe from the roof of the basement.

My questions are:
1. Am I allow to hook up the gas to the water heater using a short length of flexible gas line?
2. Am I allow to hook up the water to the water heater using a short lengh of flexible water line?

Thanks.

Paul