use function array
Merge pull request #8 from aki-55p/working

use function array