added array exercise B