copying contents of source file containing 3 function definitions