Move to ruby

In ruby the result of last line is being returned, so it does not require typing 'return' explicitly