should be working with creating new arrays, but needs to be changed
Completed assignment