starting to write the demonstration code