If you have a specific question about the tree, we can try to help.
However:
1. We won't do homework for you (this looks like a homework problem!).
2. The 'answer' will be different for different theories and different classes/teachers/textbooks. So the best answer is the one in your book, provided by your teacher (during office hours?), or discussed with classmates (assuming that is allowed).
"Direct speech" usually refers to non-embedded speech, in other words, just the sentence alone. Your rephrasing is fine, but you can remove the part about "the IT teacher warned", I think.