created corresponding algorithm for students