Homework 4 and misc notes