copied ex06 from pichlermi/polymertest