Finishing the list multiplication function