Broke it by trying to do the following:
i have added a request to the user to choose the size of the array
i have created the array earlier and taken a user input as its size
stringH: the number of objects to declare at the start needs to be
flexible.