If you are afraid of the dog when you come there think it's a newborn puppy, just born yesterday. Dogs can smell wether you're afraid or not. Also you could tell your teacher to keep him leashed when you go in to your class and go out.