Sample program updated