Task 1 - Read this
Task 2 - Read this
source