working on array classes
turned array classes into templates