Refactored prototypical extension