added new file file.pl for assignment new method for code