two examples for functions