rootscope example