Fix example numbering
Added code for samples