using prototype chain to make it easier to clone objects