simple examples/tests for functions