Midterm assignment for a computer-science course, fall 2006