replaced if with switch statement
Merge pull request #6 from seoha/kian

replaced if with switch statement