Adds code to fun.txt