Teacher Function Make it generalization

it fun