New method for creating arrays