Notes and code for problem sets