Setting class value as an array