Added destroy dependency to students and teachers