added map and grep to array example