Adding comments for 'extend()' method