Fixed `extend()` method
Merge pull request #74 from cferdinandi/fix-extend-method

Fixed `extend()` method