lab1: now increases size of array