integrated multiplication method to the array class