Use a case instead of ifs
Typo