new class to handle interaction with  files