structure egg based on bobtemplates