For an exercise and some tests