A grid exercise for fun in class