The insulated Class A chimney should start inside the ceiling support box that will be needed to go through the ceiling. If you are using single wall stovepipe on the ground floor, 18 inches of clearance should be maintained between the pipe wall to the ceiling. The clearance can be reduced to 6 inches for double walled stovepipe.