Implemented the filePath method in the view controller implementation file