changed example program