Assignment 3: Previous commit has solution to problem 3 aswell