How does the Sample Program work?