added attributeArray function

Signed-off-by: Blessing Osakue <iyoworks@gmail.com>