WIP on histogram method