updated Teacher class