Updated example with file access