Creating and loading arrays