Working with array to write Dog out

Working with array to write dog out