Added a copyFile Method