Fixed ruby as well. Changed puts to print to prevent newline. So it has the same output format as the others