Modelling a gas