higerorderfunctions section done