Passing multiple arguments to a function