added small class for file handling