soon they arrived at the exclusive academy and after hugging the children and walking a tearful , clingy meggie to her classroom , they waved to the kids as they entered the building , all of them turning around and waving back wildly before disappearing inside .