histogram script and result