Allowd 'new' method to accept an arrayref