Add some array calculation