Replaced 'if' with 'switch'. Added 'usage' function