added sample script to density.py