add basic and high-order function example.