Updated sample4 - added functional for download file