Step 4 of this exercise adds, "arr.sort!", which returns the sorted array.
Step 5 tells you to add the "if" statement, if rev == true, and stops there.
The program still needs to know what to do - if rev == false - as in the default parameters. So without an "else" statement you get "Oops, try again. It looks like your method doesn't default to alphabetizing an array when it doesn't receive a second parameter."
So the program will work after adding the "else" statement, and
can be done without needing to "return" arr again.
def alphabetize(arr, rev = false)
if rev == true
numbers = [4,8,1,9,2,7,3,5,6]
to see the numbers reversed, change the last line to:
puts alphabetize(numbers, true)