basic histogram working