The functional form of single-stranded RNA molecules, just like proteins, frequently requires a specific tertiary structure. The scaffold for this structure is provided by secondary structural elements that are hydrogen bonds within the molecule. This leads to several recognizable "domains" of secondary structure like hairpin loops, bulges, and internal loops. In order create, i.e., design, a RNA for any given secondary structure, two or three bases would not be enough, but four bases are enough. This is likely why nature has "chosen" a four base alphabet: less than four does not allow to create all structures, while more than four bases are not necessary. Since RNA is charged, metal ions such as Mg2+ are needed to stabilise many secondary and tertiary structures.