Parts 1-3 for Assignment 3