CP and CV of a gas of diatomic molecules