Added feedback logic to teacher