Part 1 for Assignment 5