adding function examples