Changed add and multiply to accept an arbitrary number of arguments