See the homework spec.