completed histogram approach draft.