Finished changing the code to reflect the items as arrays instead of objects.