added constructor prototype method