Added sample for higher order functions