Why not write a loop to do these three lines?