define with Enum.each
Merge pull request #3 from Joe-noh/refact

define with Enum.each