Implemented the "teaching" functionality