why an array? would a regular object not be more appropriate? Also, indentation