Pre change @result to Array
After Refactoring