Epicodus exercise using Ruby