How to multiply using an array