Note for next time, you can also add code (or array element) starting from the last one. this avoids dealing with shifting indexes.