basic histogram program