add a script to do simple analysis