Added if statement for file creation
Merge branch 'Practice-branch'