add tiny example for trigger function