ruby trivial code