added sample with rest-parameter