using multiple inputs; multiple outputs