Remember, there are always many ways of accomplishing something in Ruby. Converting strings to symbols is no different!
.to_sym, you can also use
.intern. This will internalize the string into a symbol and works just like
"hello".intern # ==> :hello
When you’re looking at someone else’s code, you might see
.intern (or both!) when converting strings to symbols.
Update your code from the last exercise to use
.intern instead of