emgm: Simple higher-order example