Write a simple histogramming package. The calling sequences might look like this:-
call hbk_define( num_bins, x_lo, x_hi) ! Define histogram call hbk_fill( value ) ! Update histogram call hbk_plot ! Print histogram