Add a missing 'self' assignment in code example