More work on arrays! Almost working!