1.how to convert the 1st function to work with task in parallel tried to do it but I don\'t know if I am working correctly or not, please if anyone can help me I will be gra