Assignment 3 Task 1 to 7