Creating compound arguments in a custom class