hw2 code and decently-texed pdf