TODO: MAIN LOOP GOES HERE AND SHOULD BE CALLING A TEMPLATE PART ON EACH ITERATION