add students func