Adding histogram