updates gemspec with dependencies
breaks out array access question into its own class