convert example to exercises