modified sample to use the methods from File Service.