change fetchExamples function into CPS and backcall