Added the DensityModel class.