updated the file with functions