Commit no.3: Added function to get a file from a path