Created arrays and used pop, push, unshift, shift, and splicing