have array generation working
added element access