Adding prototype access to new extend function