Adding the roller coaster text code in scala