trying to get numbering working correctly with embedded code snippet