add student function.