Got the syntax for assinging into an array specified by a variable correct