Adding Density getter and setter.