Adds example code for DENSITY setting.