Added initialization with array