Completed the script including question 4. Though I ran into issues on the commands in part c and d of question 4.