samples: Example trainer in GNU C.