make sample program using take func