abstract class of integer arrays and functions using them