-- added example with histogram