updated example with different file formats.