add the variaitonal example program with document