added initial work for recoding example

Maybe we should use srand to seed the random generator so that you don't always get the same result when running the application