Teacher backend

working teacher backend, needs more work to be done soon