added fun to compile program in directory