add pattern + array exercise