extended constructor function is now using correct 'this' context