REFACTOR: creating class to files chain and using join.