wrote a program to find a given program