added example for writing to file
added example for using pointers
added example for recursion