Study of atomic ordering with inclusion of a gas of conduction electrons