Task 3 solved for positive numbers
Started task 4