[lab3] histogram dialog done