Adding histogram solution