Adding digest sample code used in classroom