Created a method 'cp' that copies a single file.