Added nested for loop + finished