Playing with program.txt, but function still needs to be fully implemented