Add the elements and organize strucutre.