First iteration of code