update the general-purpose example