Changed printArray method to public