sample program updated