high-order programming sample