Homework 6, revision 0