Higher order functions and their application examples