Fully Working Following Task 2 of Assignment 6