Updated the sandbox, added the array accessor and refactored code into the proper location