program for functions and variables