revised ruby challenge