Changing scope modifiers and adding missing 'this'