Roller coaster text code in ruby