added missing facotry declaration to example