Added 'this' reference to num_instructions field so it's properly updated,as before the method was affecting the local method parameter rather than the class field
Merge pull request #12 from Disruption/stomas/bugfix/wrong-field-reference

Added 'this' reference to num_instructions field so it's properly updated