Added for loop to create boxes