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

Fixed `extend()` method