created function program()