Working with files: Scripts and Functions