add Array and refactor
Merge pull request #1 from hiraoka/refactor

add Array and refactor