added num examples method