A generic interval sample program with a main() function.