addition of all files for lab activity (higher order function)