Added sample code for files chapter.