add teaching code.