Homework for 6.816