Higher order function example added