1st iteration of program