Use pattern matching instead.
Merge pull request #1 from benjamintanweihao/patch-1

Use pattern matching instead.