create ruby structure