Got histogram working