updating file with class