histogram concept finished, tests added.