make sample program using function application