Uploaded answer to Q6 of Assignment 4