learned how to add and multiply values in an array