College teacher brings dog in to exam to help calm down students