add functions to generate and show samples
add functions to generate and show samples