reorganization of Pd examples + new example