When you are in trouble, you are the nearest first person who can help you!
P.S. You'll have to meet with Dan's principal when you get back. He got in trouble for doing ninja moves in class. Don't worry. This happens all the time.