add some more examples and add function apply
add some more examples and add function apply