Getting elements array