An in-class exercise for DFI3