added generic function example
added session 402