ITP - flow control - case statements - refactored

You can also save the result of a case statement into a variable. Let's
refactor the code above to do just that. This way we don't have to write
puts so many times.