a exercise for varargs parameters