using Object.extend