added array constructor with default elements