Adding Ruby with tested solution