better attribute array example