learning lua, saving files with snippets of code for reference