array functionality, instance variables amended