Create ruby structure