student function example