Backend code for Student Model and initial Path Model