switch case instead of if .. else if
Merge pull request #1 from fadhlirahim/master

switch case instead of if .. else if