added the for loop to loop through each house