Finished first iteration of main method