Add method to create an array