building a model for the files