function.php 2 functions for teacher