added example with local data