Added teaching functionality