Task 2:

Task 1: