}
$class1 = new Classes('First Class');
$class2 = new Classes('Second Class');
$subj1 = new Subject('Maths', 160, 8);
$subj2 = new Subject('Informatics', 100, 6);
$subj3 = new Subject('English', 200, 10);
$subj4 = new Subject('Literature', 120, 5);
$teacher1 = new Teacher('Victory Fox', '465-254-421', 'Algebra');
$teacher2 = new Teacher('George Nickelson', '223-548-212', 'English Literature and freestyle writing');
$teacher3 = new Teacher('Peter Williams', '223-548-897', 'Software Engineering');
$student1 = new Student('Anna Rosewood', '558-788-458', 1, 6.0);
$student2 = new Student('Carrie Clark', '589-788-454', 4, 4.5);
$student3 = new Student('Michael Fllinstone', '689-725-231', 15, 5.45);
$student4 = new Student('Ron Pillsbury', '254-255-210', 22, 5.75);
$class1->add_teachers($teacher1);
$class1->add_students($student1);
$class1->add_students($student2);
$class1->add_students($student3);
$class1->add_students($student4);
$class2->add_teachers($teacher2);
$class2->add_teachers($teacher3);
$class1->show_class();
$class2->show_class();
$teacher1->add_subj($subj1);
$teacher2->add_subj($subj2);
$teacher2->add_subj($subj3);
$teacher1->show_dets();
$teacher2->show_dets();
$student1->show_dets();
$student1->homework();
$student2->study();