First attempt at histogram