Updates plugin samples to use a common code base;