Consider the following sentence:
"The teacher, praising the students for their hard work and dedication, announced that they would have a surprise party."
Which of the following options best maintains the original meaning of the sentence while improving its syntactical clarity?